﻿@model Contrib.DecoratorField.Settings.DecoratorFieldSettings
@using Contrib.DecoratorField.Settings;

<fieldset>
   <div>
   <label for="@Html.FieldIdFor(m => m.Mode) ">@T("Mode")</label>
    <select id="@Html.FieldIdFor(m => m.Mode)" name="@Html.FieldNameFor(m => m.Mode)">
        @Html.SelectOption(DecoMode.full, 
          Model.Mode == DecoMode.full,
          T("Full tag").ToString())
        @Html.SelectOption(DecoMode.begin,
          Model.Mode == DecoMode.begin,
          T("Begin tag only").ToString())
        @Html.SelectOption(DecoMode.end,
          Model.Mode == DecoMode.end,
          T("End tag only").ToString())
    </select> 
    @Html.ValidationMessageFor(m => m.Mode)
    </div>
</fieldset>
<fieldset>
   <div>
   <label for="@Html.FieldIdFor(m => m.HtmlTag) ">@T("HTML Tag")</label>
    <select id="@Html.FieldIdFor(m => m.HtmlTag)" name="@Html.FieldNameFor(m => m.HtmlTag)">
        @foreach(HtmlTagDisplay opt in Enum.GetValues(typeof(HtmlTagDisplay)) )
        {
            @Html.SelectOption(opt, 
              Model.HtmlTag == opt,
              opt.ToString())
        }
    </select> 
    @Html.ValidationMessageFor(m => m.HtmlTag)
    </div>
</fieldset>
 <fieldset>
    <div>
        @Html.CheckBoxFor(m => m.HasAttributes) <label for="@Html.FieldIdFor(m => m.HasAttributes)" class="forcheckbox">@T("The Html tag has Attributes")</label>
        <span class="hint">@T("Check to allow parameter input.")</span>
    </div>
</fieldset>
 <fieldset>
    <label class="forpicker" for="@Html.FieldIdFor(m => m.Attributes)">@T("Attributes")</label>
	<div class="editor-field">
        @Html.TextBoxFor(m => m.Attributes, new { @class = "text" })
        @Html.ValidationMessageFor(m => m.Attributes)
        <span class="hint">@T("The attributes to use.")</span>
	</div>
</fieldset>
<fieldset>
  <label for="@Html.FieldIdFor(m => m.CssClass)">Css Class</label>
    <div>
    <span class="deco-cssclass">@Html.EditorFor(m => m.CssClass)</span>
    </div>
</fieldset>
 <fieldset>
    <div>
        @Html.CheckBoxFor(m => m.HasContent) <label for="@Html.FieldIdFor(m => m.HasContent)" class="forcheckbox">@T("The Html tag has HasContent")</label>
        <span class="hint">@T("Check to allow content input.")</span>
    </div>
</fieldset>
 <fieldset>
    <label class="forpicker" for="@Html.FieldIdFor(m => m.TagContent)">@T("Content")</label>
	<div class="editor-field">
        @Html.TextBoxFor(m => m.TagContent, new { @class = "text" })
        @Html.ValidationMessageFor(m => m.TagContent)
        <span class="hint">@T("Content surrounded by the tag.")</span>
	</div>
</fieldset>
